home *** CD-ROM | disk | FTP | other *** search
- Path: news.channel1.com!channel1!dspse.bedford
- Distribution: world
- Newsgroups: comp.lang.c++
- Subject: [Q]Virtualizing/Deriving
- From: dspse.bedford@channel1.com (Dspse Bedford)
- Message-ID: <40.91023.1613@channel1.com>
- Date: Fri, 12 Apr 1996 06:33:00 -0500
- Organization: Channel 1(R) 617-864-0100 Info
-
-
- I just started using C++ so bare with me.
-
- Lets say I have a base class, BASE, with lots and lots of operators and
- member functions virtualized, like 10,000. Now I create 100 derived classes
- with BASE as their parent. The first 99 derived classes use all of the
- operators and member function which exist in BASE, of course, if they need
- to redefine any they will. The last derived class does not use some of the
- operators defined, lets say 2 out of 10,000. Now if I don't define these 2
- operators, the compiler will go pick up the parent definition if a user of
- the last derived class attempts to use any of these two operators.
- What can I do such that the compiler will give an error to the user? I
- do not want to create another base class if possible.
-
- Thank you
- Anastasios Maurudis
- Algorithm Research and Development Group
- DSP Software Engineering, Inc.
- 175 Middlesex Turnpike
- Bedford, MA 01730 USA
- Voice: 617-275-3733
- Fax: 617-275-4323
-
- ---
- * WR 1.32 # 331 * Beam me up Scotty, it ate my Phaser!
-